package com.starlink.model.dtomapper;

import com.starlink.model.domain.UserVipPaymentDO;
import com.starlink.model.request.UserVipPaymentRequest;
import com.starlink.model.vo.UserVipPaymentVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface UserVipPaymentDtoMapper {

    UserVipPaymentDtoMapper INSTANCE = Mappers.getMapper(UserVipPaymentDtoMapper.class);

    /**
    * DO to VO
    * @param userVipPaymentDO
    * @return
    */
    UserVipPaymentVO do2VO(UserVipPaymentDO userVipPaymentDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    UserVipPaymentDO request2DO(UserVipPaymentRequest request);
}
